#include <bits/stdc++.h>
using namespace std;

int n, r[100010];
int main(){
    ios::sync_with_stdio(false);
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    cin >> n;
    for (int i=1; i<=n; ++i) cin >> r[i];
    sort(r, r+n+1);
    deque<int> alive;
    for (int i=1; i<=n; ++i){
        if (alive.empty()) alive.push_back(r[i]);
        else {
            if (r[i] > alive.front()) alive.pop_front();
            alive.push_back(r[i]);
        }
    }
    cout << alive.size() << endl;
    return 0;
}

